package game;

import javax.media.opengl.GL2;

class Pictures
{
    private TextureObject [] textures;
    private static int n;
    private GL2 gl;
    
    public Pictures(GL2 gl, int count)
    {
        textures = new TextureObject[count];
        n = count;
        this.gl = gl;
        loadImages();
    }
    
    // подгрузка текстур
    private void loadImages()
    {
        textures[0] = new TextureObject(0, 0, 1, 1, "images/nol.png", gl);
        textures[1] = new TextureObject(0, 0, 1, 1, "images/one.png", gl);
        textures[2] = new TextureObject(0, 0, 1, 1, "images/two.png", gl);
        textures[3] = new TextureObject(0, 0, 1, 1, "images/three.png", gl);
        textures[4] = new TextureObject(0, 0, 1, 1, "images/four.png", gl);
        textures[5] = new TextureObject(0, 0, 1, 1, "images/five.png", gl);
        textures[6] = new TextureObject(0, 0, 1, 1, "images/six.png", gl);
        textures[7] = new TextureObject(0, 0, 1, 1, "images/seven.png", gl);
        textures[8] = new TextureObject(0, 0, 1, 1, "images/eight.png", gl);
        textures[9] = new TextureObject(0, 0, 1, 1, "images/nine.png", gl);
        textures[10] = new TextureObject(0, 0, 1, 1, "images/ten.png", gl);
        textures[11] = new TextureObject(0, 0, 1, 1, "images/eleven.png", gl);
        textures[12] = new TextureObject(0, 0, 1, 1, "images/twelve.png", gl);
        textures[13] = new TextureObject(0, 0, 1, 1, "images/thirteen.png", gl);
        textures[14] = new TextureObject(0, 0, 1, 1, "images/fourteen.png", gl);
        textures[15] = new TextureObject(0, 0, 1, 1, "images/fifteen.png", gl);
    }
    
    public TextureObject get(int i)
    {
        return textures[i];
    }   
}
